package edu.zut;

class People{
    String name;
    int age;

    public void People1(String name, int age){
        this.name = name;//变成员变量（全局变量）
        this.age = age;
        this.say();
    }

    void say(){
        System.out.println(name + " : " + age);
    }

    public People create(){//不多
        return this;
    }

}


public class class05 {
    public static void main(String[] args) {
        People peo = new People();
        peo.name = "gyc";
        peo.age = 20;
        peo.say();
        peo.create();
    }
}
